<!--
  @author wangjie
  @since 2020-03-25
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<style>
    .layui-table-cell {
        height: auto !important;
    }

</style>
<head th:include="common/common::jscss"/>

<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div th:replace="msg/_tab::tab"></div>
        <form method="post" action="/msg/list.action">
            <div class="item-submit" style="display: none">
                <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i></button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm" lay-submit="" lay-filter="zmn-form-reset"><i class="layui-icon">&#xe669;</i></button>
            </div>
        </form>

        <div class="layui-card-body" id="table_body">
            <!--<zmn th:if="${vo.unReadFlag == null || vo.unReadFlag == false}">-->
            <!--    <div th:replace="msg/_table::table"></div>-->
            <!--</zmn>-->
            <!--<zmn th:if="${vo.unReadFlag != null || vo.unReadFlag == true}">-->
            <!--    <div th:replace="msg/_unreadtable::table"></div>-->
            <!--</zmn>-->
            <zmn th:if="${vo.unReadFlag == null || vo.unReadFlag == false}">
                <table class="layui-hide" id="zmn-table" lay-filter="zmn-table"></table>
                <div id="pageDiv"></div>
            </zmn>
            <zmn th:if="${vo.unReadFlag != null || vo.unReadFlag == true}">
                <table class="layui-hide" id="zmn-table" lay-filter="zmn-table"></table>
                <div id="pageDiv"></div>
            </zmn>
        </div>
    </div>
</div>
</body>
</html>

<!--主js代码置于html外-->
<script type="text/javascript" th:inline="javascript">
    const ZMN_URL_ENV = [[${ZMN_URL_ENV}]]

    var json = {
        staffId: [[${staffId}]],
        flag: [[${flag}]],
        items: [[${items}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };
    layui.config({
        base: "/static/lay/",
        version: 20200321120021
    }).extend({
        index: "lib/index",
        msg_list_js: "msg/zmn.plat.msg.list",
    }).use(['index', 'msg_list_js']);
</script>
